<nav class="navbar navbar-fixed-top navbar-custom" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" style="color: #eeeeee"><span class="fa fa-home"> Ytong</span></a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="color: #eeeeee" ui-sref="{{mc.STATES.SALESMAN.MESSAGES}}"><span class="fa fa-envelope"></span> Messages <span class="badge badge-error" ng-show="mc.getMessagesCount() > 0">{{mc.getMessagesCount()}}</span></a>
                </li>
                <li class="dropdown">
                    <a href="" class="dropdown-toggle" data-toggle="dropdown" style="color: #eeeeee"> My Profile</a>
                    <ul class="dropdown-menu">
                        <li style="height: 20px;"><a href=""><span class="fa fa-gear"></span> Settings</a></li>
                        <li class="divider"></li>
                        <li><a href="#" ng-click="mc.logout()"><span class="fa fa-sign-out"></span> Logout</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="" class="dropdown-toggle" data-toggle="dropdown" style="color: #eeeeee">Help</a>
                    <ul class="dropdown-menu">
                        <li><a href=""><span class="fa fa-question"></span> Help</a></li>
                        <li class="divider"></li>
                        <li><a href="#" ng-click="mc.writeFeedback()"><span class="fa fa-file-text-o"></span> Feedback</a></li>
                    </ul>
                </li>
            </ul>
            <form class="navbar-form navbar-right">
                <input type="text" class="form-control" placeholder="Search...">
            </form>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 sidebar">
            <ul class="nav nav-sidebar">
                <li ng-class="{active: mc.isActive(mc.STATES.SALESMAN.DASHBOARD)}"><a class="first" href="#" ui-sref="{{mc.STATES.SALESMAN.DASHBOARD}}" style="color: #000000"><span class="fa fa-dashboard"></span> Dashboard</a></li>
                <li ng-class="{active: mc.isActive(mc.STATES.SALESMAN.CUSTOMERS)}"><a class="first" href="#" ui-sref="{{mc.STATES.SALESMAN.CUSTOMERS}}" style="color: #000000"><span class="fa fa-users"></span> Customers</a></li>
                <li ng-class="{active: mc.isActive(mc.STATES.SALESMAN.ORDERS)}"><a href="#" ui-sref="{{mc.STATES.SALESMAN.ORDERS}}" style="color: #000000;"><span class="fa fa-shopping-cart"></span> Orders</a></li>
            </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <div ui-view="body" ng-show="!mc.isLoading"></div>
            <div class="modal fade bs-example-modal-sm" id="salesmanLoading" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
                <div class="modal-dialog modal-sm" style="width: 120px;">
                    <div class="modal-content">
                        <div class="modal-body">
                            Loading <span class="fa fa-spin fa-spinner fa-2x pull-right" style="margin-bottom: 150px;"></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/ng-template" id="editFeedback">
    <div class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title" id="feedbackLabel">Write Feedback</h4>
                </div>
                <div class="modal-body">
                    <form role="form">
                        <div class="row">
                            <div class="form-group col-md-12">
                                <label for="title">Title</label>
                                <input type="text" ng-model="wfc.feedback.title" class="form-control" id="title">
                            </div>
                            <div class="form-group col-md-12">
                                <label for="content">Content</label>
                                <textarea ng-model="wfc.feedback.content" class="form-control" id="content" style="height:100px;"></textarea>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning" data-dismiss="modal" ng-click="wfc.close('none')">
                        <span class="fa fa-close"></span> Cancel
                    </button>
                    <button type="button" class="btn btn-success" data-dismiss="modal" ng-click="wfc.close('add')">
                        <span class="fa fa-check"></span> Submit
                    </button>
                </div>
            </div>
        </div>
    </div>
</script>
